package cn.javasea.websocket.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author longxiaonan
 * @since 2020-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("p_notice_detail")
public class NoticeDetail implements Serializable {

    private static final long serialVersionUID=1L;

    private String id;

    /**
     * 关联的通知id
     */
    private String noticeId;

    /**
     * 接受用户id
     */
    @TableField("receive_user_id")
    private String receiveUserId;

    /**
     * 接受用户名
     */
    private String receiveUsername;

    /**
     * 0未读；1已读
     */
    private Integer state;

    /**
     * 阅读时间
     */
    private LocalDateTime readTime;

    /**
     * 租户id
     */
    private String tenantId;


    public static final String ID = "id";

    public static final String NOTICE_ID = "notice_id";

    public static final String RECEIVE_USERID = "receive_userId";

    public static final String RECEIVE_USERNAME = "receive_username";

    public static final String STATE = "state";

    public static final String READ_TIME = "read_time";

    public static final String TENANT_ID = "tenant_id";

}
